package com.huitone.smspfm.core.waterpipe.branch;

import java.util.Date;

import com.huitone.smspfm.redis.model.SmsEntity;

public abstract class AbstractBranchPipe implements IBranchPipe {
	
	protected Date mpStartTime = null;
	protected Date bpStartTime = null;
	protected Date bpEndTime = null;
	
	/**
	 * 过滤操作，返回值为NULL则表示传入的对象被本过滤器吸收了，否则返回SmsEntity对象
	 * @param entity
	 * @return
	 */
	public abstract SmsEntity filter(SmsEntity entity);

	public Date getMpStartTime() {
		return mpStartTime;
	}

	public void setMpStartTime(Date mpStartTime) {
		this.mpStartTime = mpStartTime;
	}

	public Date getBpStartTime() {
		return bpStartTime;
	}

	public void setBpStartTime(Date bpStartTime) {
		this.bpStartTime = bpStartTime;
	}

	public Date getBpEndTime() {
		return bpEndTime;
	}

	public void setBpEndTime(Date bpEndTime) {
		this.bpEndTime = bpEndTime;
	}


}
